package com.bang.itstack.day05;

/**
 * @ClassName: Singleton01
 * @Desc: 内部类
 * @author: <Bang>
 * @Date: 2021/10/21 19:19
 * @Version: 1.0
 * @Modified By:
 */
public class Singleton05 {

    private Singleton05() {
    }

    private static class Singleton {

        private static Singleton05 instance = new Singleton05();

    }

    public static Singleton05 getInstance() {
        return Singleton.instance;
    }

}
